package cz.none.bezbarier.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cz.none.bezbarier.web.util.Constants;

@Controller
@RequestMapping("/")
public class HomeController extends AController {

	private static final Logger LOG = LoggerFactory.getLogger(HomeController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String helloWorld(Model model) {
		LOG.debug("entering HomeController");
		return Constants.Page.HOME;
	}

	@RequestMapping(value = "big", method = RequestMethod.GET)
	public String helloWorldBig(Model model) {
		LOG.debug("entering HomeController");
		model.addAttribute("hello", "Hello World Big");
		return Constants.Page.HOME;
	}
}
